Diego Celix [Fri, 10 Jun 2011 00:32:05 +0000 (02:32 +0200)]
gtkprinteroptionwidget: gtk_misc_set_alignment
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkprinteroptionwidget.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
Diego Celix [Fri, 10 Jun 2011 00:47:09 +0000 (02:47 +0200)]
gtk/gtkfontsel: gtk_misc_set_alignment replacing
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkfontsel.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
Diego Celix [Fri, 10 Jun 2011 00:26:43 +0000 (02:26 +0200)]
gtk/gtkassistant: gtk_misc_set_alignment replacing
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkassistant.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
Diego Celix [Thu, 9 Jun 2011 02:12:17 +0000 (04:12 +0200)]
gtkprintunixdialog: gtk_misc_set_alignment replace
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkprintunixdialog.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
Diego Celix [Thu, 9 Jun 2011 01:44:03 +0000 (03:44 +0200)]
gtkprintbackend: gtk_misc_set_alignment replacing
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkprintbackend.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
Diego Celix [Thu, 9 Jun 2011 02:14:21 +0000 (04:14 +0200)]
gtkpagesetupunixdialog: gtk_misc_set_alignment
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkpagesetupunixdialog.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
Diego Celix [Thu, 9 Jun 2011 01:54:37 +0000 (03:54 +0200)]
gtkfilechooserdefault: gtk_misc_set_alignment
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkfilechooserdefault.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
Diego Celix [Thu, 9 Jun 2011 01:58:38 +0000 (03:58 +0200)]
gtkcellrendereraccel: gtk_misc_set_alignment
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkcellrendereraccel.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
Diego Celix [Sat, 21 May 2011 18:32:00 +0000 (20:32 +0200)]
gtk/gtkmessagedialog: gtk_misc_set_alignment
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkmessagedialog.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
Diego Celix [Sat, 21 May 2011 18:08:51 +0000 (20:08 +0200)]
gtk/gtkmountoperation: gtk_misc_set_alignment
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkmountoperation.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
Diego Celix [Sat, 21 May 2011 17:58:33 +0000 (19:58 +0200)]
gtk/gtkradiomenuitem: gtk_misc_set_alignment
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkradiomenuitem.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
Diego Celix [Sat, 21 May 2011 17:54:50 +0000 (19:54 +0200)]
gtk/gtkmenuitem: gtk_misc_set_alignment replacing
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkmenuitem.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
Matthias Clasen [Fri, 10 Jun 2011 21:42:14 +0000 (17:42 -0400)]
One more change
Matthias Clasen [Fri, 10 Jun 2011 21:40:16 +0000 (17:40 -0400)]
Expand migration hints for h/v boxes
Marc-André Lureau [Fri, 10 Jun 2011 12:03:47 +0000 (14:03 +0200)]
build: fix win32 configure checks
Notice the broken check for "os_win32" vs. "$os_win32".
Improve a bit the rest of autofoo stuff around it.
https://bugzilla.gnome.org/show_bug.cgi?id=652282
Benjamin Otte [Fri, 10 Jun 2011 14:26:39 +0000 (16:26 +0200)]
reftests: Remove unused file from EXTRA_DIST
Benjamin Otte [Fri, 10 Jun 2011 13:00:39 +0000 (15:00 +0200)]
cups: Fix unused variable warning when not using colord
Javier Jardón [Mon, 6 Jun 2011 18:13:44 +0000 (19:13 +0100)]
gtk: Use const instead G_CONST_RETURN
Javier Jardón [Mon, 6 Jun 2011 18:07:23 +0000 (19:07 +0100)]
docs: Do not use G_CONST_RETURN
Javier Jardón [Mon, 6 Jun 2011 18:05:18 +0000 (19:05 +0100)]
gdk: Use const instead G_CONST_RETURN
Richard Hughes [Fri, 10 Jun 2011 11:34:40 +0000 (12:34 +0100)]
If --enable-colord or --disable-colord is not used when configuring, autodetect the presence of colord
Yaron Shahrabani [Fri, 10 Jun 2011 09:56:42 +0000 (12:56 +0300)]
Updated Hebrew translation.
Javier Jardón [Fri, 10 Jun 2011 09:55:28 +0000 (10:55 +0100)]
docs: Improve crossreferences
Use #GtkOrientable:orientation instead "orientation"
Murray Cumming [Thu, 9 Jun 2011 20:59:38 +0000 (22:59 +0200)]
Box, etc: Improve docs after H* and V* deprecations.
Stop documenting the base class as just a base class for the
H and V specializations, copying the useful descriptions from
those H/V classes to the base class. Do not advise the use of
the H/V classes or refer to them unnecessarily.
Yaron Shahrabani [Fri, 10 Jun 2011 05:17:10 +0000 (08:17 +0300)]
Updated GLib Translations.
Matthias Clasen [Fri, 10 Jun 2011 04:15:10 +0000 (00:15 -0400)]
Avoid underallocations in the custom paper dialog
Matthias Clasen [Fri, 10 Jun 2011 04:10:08 +0000 (00:10 -0400)]
Don't rely on button allocations for invisible headers
Now that we are not allocating treeview column buttons anymore
with invisible headers, we can't rely on their allocations for
other things like cell area computations anymore. Use x-offset
and width of the column directly, instead.
Matthias Clasen [Fri, 10 Jun 2011 04:09:25 +0000 (00:09 -0400)]
Add API to get x position of treeview columns
Their width was already available.
Cosimo Cecchi [Fri, 10 Jun 2011 02:41:36 +0000 (22:41 -0400)]
border-image: unpack the GtkGradient if there's one
So that it will eventually be resolved by the style property lookup
machinery.
Cosimo Cecchi [Fri, 10 Jun 2011 02:56:56 +0000 (22:56 -0400)]
cellrendererpix: make the icon render properly again
pix_rect was not initialized anymore, so the gdk_rectangle_intersect()
call would always fail.
Matthias Clasen [Fri, 10 Jun 2011 01:40:08 +0000 (21:40 -0400)]
GtkTreeView: Don't short-circuit header-height calculation
The code was putting header_height at zero when there is
no model. That leads to temporary underallocation of header
buttons.
Matthias Clasen [Fri, 10 Jun 2011 00:40:45 +0000 (20:40 -0400)]
GtkDialog: avoid underallocations
GtkDialog changes its size depending on style properties. If
we only do this in response to ::style-updated, it happens during
the initial realization of the dialog and leads to the dialog
'growing' between when we determine the initial window size and
when we allocate it that size. So, do this beforehand.
Cosimo Cecchi [Thu, 9 Jun 2011 23:59:14 +0000 (19:59 -0400)]
border-image: add support for border-image-width too
It's useful to set a slice size != border-width, as backgrounds are
clipped to border-width too.
As slices can be half-transparent and overlap the background,
this would not fill the border box properly if we only use a single
property for specifying the width.
Also, this brings us even closer to CSS3.
Matthias Clasen [Thu, 9 Jun 2011 22:55:19 +0000 (18:55 -0400)]
Don't size-allocate invisible headers
We don't ignore their size requests when determining the
column width, so allocating them is bound to spew tons
of annoying underallocation warnings.
Cosimo Cecchi [Mon, 6 Jun 2011 15:38:45 +0000 (11:38 -0400)]
shadow: render icon-shadow for spinners
Cosimo Cecchi [Tue, 31 May 2011 22:43:43 +0000 (18:43 -0400)]
entry: use the current state when rendering symbolic icons
Make sure the current state is picked up when rendering symbolic icons
too.
Cosimo Cecchi [Wed, 25 May 2011 01:33:14 +0000 (21:33 -0400)]
entry: use GTK_STYLE_CLASS_IMAGE when rendering the entry icon
Cosimo Cecchi [Wed, 25 May 2011 01:29:20 +0000 (21:29 -0400)]
stylecontext: add an "image" style class
For images such as icons in GtkEntry widgets.
Cosimo Cecchi [Tue, 31 May 2011 20:13:15 +0000 (16:13 -0400)]
entry: use gtk_render_icon()
Cosimo Cecchi [Tue, 31 May 2011 20:05:31 +0000 (16:05 -0400)]
cellrendererpix: use gtk_render_icon()
Cosimo Cecchi [Sat, 21 May 2011 03:51:37 +0000 (23:51 -0400)]
image: use gtk_render_icon()
Cosimo Cecchi [Wed, 25 May 2011 00:59:50 +0000 (20:59 -0400)]
stylecontext: add gtk_render_icon()
Cosimo Cecchi [Mon, 6 Jun 2011 14:23:44 +0000 (10:23 -0400)]
themingengine: use cairo image surfaces to render state effects
This makes the code cleaner and allows this to be re-used in a
pixbuf-less future.
Cosimo Cecchi [Mon, 6 Jun 2011 14:23:06 +0000 (10:23 -0400)]
themingengine: add gtk_theming_engine_render_icon()
Renders a pixbuf in the provided rectangle, applying effects such as
'icon-shadow'.
Cosimo Cecchi [Sat, 21 May 2011 03:51:16 +0000 (23:51 -0400)]
shadow: add _gtk_icon_shadow_paint()
Paints a shadow of the current source, using the defined colors.
Cosimo Cecchi [Sat, 21 May 2011 03:48:36 +0000 (23:48 -0400)]
styleproperties: add an 'icon-shadow' style property
It's a custom property with the same semantics of text-shadow, which
works on icons and icon-like UI elements, such as spinners, arrows and
separators.
Cosimo Cecchi [Thu, 9 Jun 2011 21:05:27 +0000 (17:05 -0400)]
border-image: fix a horizontal/vertical index typo
Jorge González [Thu, 9 Jun 2011 21:05:15 +0000 (23:05 +0200)]
Updated Spanish translation
Cosimo Cecchi [Thu, 9 Jun 2011 18:56:09 +0000 (14:56 -0400)]
spinbutton: don't render an additional background below arrows
It's an entry, so it already has a background below, even when the entry
doesn't have a frame. Also, gtk_spin_button_draw_arrow() will render a
background and a frame in the arrow space anyway.
Cosimo Cecchi [Thu, 9 Jun 2011 18:55:50 +0000 (14:55 -0400)]
spinbutton: don't remove the entry style class while rendering arrows
Cosimo Cecchi [Thu, 9 Jun 2011 18:54:00 +0000 (14:54 -0400)]
border-image: don't try to unpack values from a NULL border-image
NULL is a valid value for border-image, so if it's NULL when unpacking,
don't try to access the struct fields, but just init the GValues for the
unpacked parameters.
Murray Cumming [Thu, 9 Jun 2011 18:36:14 +0000 (20:36 +0200)]
gtkcssprovider.h: Remove a trailing comma.
Richard Hughes [Fri, 3 Jun 2011 13:25:54 +0000 (14:25 +0100)]
Add optional colord support to the CUPS print module
This functionality adds a new 'Printer Profile' entry to the 'Color' page in the
UNIX print dialog if colord support is enabled.
This shows the user what color profile will be used for the settings they have
selected, and if no profile or the default profile is going to be used.
We are deliberately not allowing the user to _change_ the selected profile, as
the ICC profile is an implementation detail, and we should not change the other
print settings based on the characterization state.
The OpenICC group broadly recommend showing the profile that is used, so that
power users can be sure the correct profile is being used at the right time.
Normal users won't care, as they don't know how horrible the color match is
without profiling the printer and media.
Richard Hughes [Thu, 9 Jun 2011 14:30:31 +0000 (15:30 +0100)]
Add a 'value' GObject property to GtkPrinterOption so that it can be used with g_object_bind_property()
Kjartan Maraas [Thu, 9 Jun 2011 11:02:39 +0000 (13:02 +0200)]
Updated Norwegian bokmål translation
Benjamin Otte [Thu, 9 Jun 2011 04:21:11 +0000 (06:21 +0200)]
testtreeview: Don't use deprecated classes to make things interesting
Benjamin Otte [Thu, 9 Jun 2011 04:20:42 +0000 (06:20 +0200)]
testgtk: Fix deprecation
Benjamin Otte [Thu, 9 Jun 2011 04:18:10 +0000 (06:18 +0200)]
gail: Fix for new box handling
Benjamin Otte [Thu, 9 Jun 2011 04:16:23 +0000 (06:16 +0200)]
gail: Fix scrollbar index_in_parent() implementation
Benjamin Otte [Thu, 9 Jun 2011 04:00:34 +0000 (06:00 +0200)]
gail: Remove unreachable code
Benjamin Otte [Thu, 9 Jun 2011 03:41:53 +0000 (05:41 +0200)]
reftests: ADd test for overlapping border-image slices
Benjamin Otte [Thu, 9 Jun 2011 02:50:12 +0000 (04:50 +0200)]
themingengine: Don't modify pattern
Instead, scale/unscale the cairo_t.
Benjamin Otte [Thu, 9 Jun 2011 02:48:40 +0000 (04:48 +0200)]
reftests: Add border-image-repeat
Tests that border-image-repeat is rendered correctly.
The reftest is done via toolbars stuffed into a GtkFixed using
background-image and images tuned for it.
Benjamin Otte [Wed, 8 Jun 2011 23:41:18 +0000 (01:41 +0200)]
border-image: Redo border-image rendering
The new code is smaller, less crashy and correct(er), but arguably more
complex. I'd have liked to make it simpler, but this border image
algorithm is complex...
Benjamin Otte [Wed, 8 Jun 2011 05:04:38 +0000 (07:04 +0200)]
border-image-repeat: Fix order of hrepeat and vrepeat
Benjamin Otte [Tue, 7 Jun 2011 23:58:46 +0000 (01:58 +0200)]
border-image: Don't use NEAREST filtering
use EXTEND_PAD instead to avoid borders.
Benjamin Otte [Tue, 7 Jun 2011 14:48:47 +0000 (16:48 +0200)]
borderimage: No need to resolve
border-image is a shorthand, so it's unpacked unresolved and repacked
resolved.
Cosimo Cecchi [Sun, 5 Jun 2011 20:49:54 +0000 (16:49 -0400)]
border-image: move private types to gtkcsstypes.c
Cosimo Cecchi [Wed, 1 Jun 2011 14:23:36 +0000 (10:23 -0400)]
border-image: don't cache the cairo_surface_t in GtkBorderImage
It's not useful to cache these surfaces here, as the GtkBorderImage will
be always generated on the fly, being a shorthand property.
This also allows to get rid of the intermediate image surfaces for
rendering the slices; we now use cairo_surface_create_for_rectangle()
to proxy the slices from the source surface to the rendered area, which
should also yield better performance.
Cosimo Cecchi [Tue, 31 May 2011 13:32:00 +0000 (09:32 -0400)]
docs: expand the docs for border-image
https://bugzilla.gnome.org/show_bug.cgi?id=651194
Cosimo Cecchi [Fri, 27 May 2011 22:13:35 +0000 (18:13 -0400)]
border-image: ensure image->resolved is set when resolving the gradient
https://bugzilla.gnome.org/show_bug.cgi?id=651194
Cosimo Cecchi [Thu, 26 May 2011 22:12:00 +0000 (18:12 -0400)]
reftests: add reftests for border-image with gradient and url sources
https://bugzilla.gnome.org/show_bug.cgi?id=651194
Cosimo Cecchi [Thu, 26 May 2011 19:54:38 +0000 (15:54 -0400)]
styleproperty: turn border-image into a shorthand property
It's composed by
- border-image-source: a cairo_pattern_t holding an image from file or a
gradient
- border-image-slice: a GtkBorder containing the slice offsets to apply
on the image
- border-image-repeat: a GtkRepeatType for the image
We deviate from pure CSS3 in the following ways:
* border-image-width is assumed to be always 1, i.e. always equal to
what's specified by border-width. I don't think it's a particularly
useful property to have, but we could add it later if needed.
* border-image-outset is absent, as we can't render outside of the
allocation yet.
https://bugzilla.gnome.org/show_bug.cgi?id=651194
Cosimo Cecchi [Thu, 26 May 2011 19:53:28 +0000 (15:53 -0400)]
border-image: change Gtk9Slice to GtkBorderImage
It's a similar private type, which is much more powerful, and respects
the CSS rendering specification for border-image.
https://bugzilla.gnome.org/show_bug.cgi?id=651194
Benjamin Otte [Wed, 8 Jun 2011 13:47:46 +0000 (15:47 +0200)]
gdk: Make background changes queue a repaint
For client-side windows, we need to queue a repaint when the background
changes. For native windows, the windowing system does take care of it,
but client-side windows are our own, so we gotta do it manually.
https://bugzilla.gnome.org/show_bug.cgi?id=652102
Benjamin Otte [Wed, 8 Jun 2011 13:46:50 +0000 (15:46 +0200)]
gdk: Don't set backgrounds on input-only windows
It doesn't make sense to allow a background on input-only windows, so
instead of setting it and then never using it, we just don't ever set
it.
Benjamin Otte [Mon, 6 Jun 2011 17:40:35 +0000 (19:40 +0200)]
toolpalette: Remove composite support
It seems to be very broken wrt input handling, causing random icons to
light up etc.
So until this is fixed, better remove composite support. It only removes
animations, so it's not a big loss for functionality.
Michal Suchanek [Wed, 8 Jun 2011 21:24:48 +0000 (16:24 -0500)]
bgo#652045 - Initialize local_only in GtkFileChooserEntry
This has to be done also when we switch to the entry, otherwise completion for
non-local URIs won't work.
Marek Kašík [Wed, 8 Jun 2011 17:22:31 +0000 (18:22 +0100)]
Trivial optimisation in GtkPrinterOptionWidget
Signed-off-by: Richard Hughes <richard@hughsie.com>
Richard Hughes [Wed, 8 Jun 2011 15:52:43 +0000 (16:52 +0100)]
Fix
93957459d8613eeb9413b4e5a32d4ccec6036160
It seems GtkHBox got dropped since my patch was reviewed. Oopsie.
Richard Hughes [Wed, 8 Jun 2011 11:02:39 +0000 (12:02 +0100)]
Add a GtkPrinterOptionWidget type of INFO to just show informational text from the print backend
This fixes https://bugzilla.gnome.org/show_bug.cgi?id=652103
Javier Jardón [Wed, 8 Jun 2011 14:23:53 +0000 (15:23 +0100)]
gtk: Clean some includes
Javier Jardón [Wed, 8 Jun 2011 12:25:54 +0000 (13:25 +0100)]
gtk[h/v]box: Recommend the use of GtkGrid.
Matthias Clasen [Wed, 8 Jun 2011 02:31:45 +0000 (22:31 -0400)]
Don't use GtkAlignments
Matthias Clasen [Wed, 8 Jun 2011 02:31:34 +0000 (22:31 -0400)]
Don't use a GtkAlignment
Matthias Clasen [Wed, 8 Jun 2011 02:17:06 +0000 (22:17 -0400)]
GtkFileChooserEntry: don't use a GtkAlignment
Matthias Clasen [Wed, 8 Jun 2011 02:03:19 +0000 (22:03 -0400)]
Use buttonboxes instead of hbuttonboxes
Matthias Clasen [Wed, 8 Jun 2011 01:50:00 +0000 (21:50 -0400)]
Drop unneeded includes: gtkalignment.h
Matthias Clasen [Wed, 8 Jun 2011 01:44:24 +0000 (21:44 -0400)]
Deprecate h/v variants of GtkBox
This has been discussed in bug 541009.
Matthias Clasen [Wed, 8 Jun 2011 01:43:32 +0000 (21:43 -0400)]
Deprecate h/v variants of GtkScale
This has been discussed in bug 541009.
Matthias Clasen [Wed, 8 Jun 2011 01:40:12 +0000 (21:40 -0400)]
Deprecate h/v subclasses of GtkPaned
This has been discussed in bug 541009.
Matthias Clasen [Wed, 8 Jun 2011 01:38:15 +0000 (21:38 -0400)]
Deprecate h/v subclasses of GtkScrollbar
This has been discussed in bug 541009.
Matthias Clasen [Wed, 8 Jun 2011 01:35:57 +0000 (21:35 -0400)]
Deprecate h/v subclasses of GtkSeparator
This has been discussed in bug 541009.
Matthias Clasen [Wed, 8 Jun 2011 01:32:49 +0000 (21:32 -0400)]
Deprecate h/v buttonbox subclasses
This has been discussed in bug 541009.
Matthias Clasen [Wed, 8 Jun 2011 01:29:01 +0000 (21:29 -0400)]
Use separators instead of hseparators
Matthias Clasen [Wed, 8 Jun 2011 01:25:20 +0000 (21:25 -0400)]
More include cleanups
Matthias Clasen [Wed, 8 Jun 2011 01:23:07 +0000 (21:23 -0400)]
More include cleanups
Matthias Clasen [Wed, 8 Jun 2011 01:16:00 +0000 (21:16 -0400)]
More include cleanups
Matthias Clasen [Wed, 8 Jun 2011 01:12:00 +0000 (21:12 -0400)]
More include cleanups
Matthias Clasen [Wed, 8 Jun 2011 00:54:23 +0000 (20:54 -0400)]
Clean up more includes
Mainly removing unused h/v includes, but also adding some that
will be necessary as replacements.